package com.heiyanqiang.service.impl;

import com.heiyanqiang.dao.LogAopDao;
import com.heiyanqiang.domain.SysLog;
import com.heiyanqiang.service.LogAopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class LogAopServiceImpl implements LogAopService {

    //注入LogAopDao
    @Autowired
    private LogAopDao logAopDao;

    @Override
    public void save(SysLog sysLog) {
        //添加日志
        logAopDao.save(sysLog);
    }

    //查询所有日志信息
    @Override
    public List<SysLog> findAll() {
        return logAopDao.findAll();
    }
}
